function TbOrderInvoies(params){ 
	 
}

TbOrderInvoies.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new TbOrderInvoies.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new TbOrderInvoies.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new TbOrderInvoies.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	/** 编号 [非空]       **/
	this.tboiId=function(tboiId){if(this.proxy)return this.getProxy().tboiId(tboiId);  this.put("tboiId", tboiId);return this;};
	/** and tboi_id is null */
	this.tboiIdNull=function(){if(this.proxy)return this.getProxy().tboiIdNull();if(this.get("tboiIdNot")==null)this.put("tboiIdNot", "");this.put("tboiId", null);return this;};
	/** not .... */
	this.tboiIdNot=function(){if(this.proxy)return this.getProxy().tboiIdNot();this.put("tboiIdNot", "not");return this;};
	this.tboiIdNotNull=function(){if(this.proxy)return this.getProxy().tboiIdNotNull();this.put("tboiIdNot", "not");this.put("tboiId", null);return this;};
	this.tboiIdNot=function(tboiId){if(this.proxy)return this.getProxy().tboiIdNot(tboiId);this.put("tboiIdNot", "not");this.put("tboiId", tboiId);return this;};
	/** and tboi_id <= ? */
	this.tboiIdMin=function(min){if(this.proxy)return this.getProxy().tboiIdMin(min);this.put("tboiIdMin", min);return this;};
	/** and tboi_id >= ? */
	this.tboiIdMax=function(max){if(this.proxy)return this.getProxy().tboiIdMax(max);this.put("tboiIdMax", max);return this;};
	this.tboiIdIn=function(ids){
		if(this.proxy)return this.getProxy().tboiIdIn(ids);  this.put("tboiIdIn", ids);return this;
	};	
	
	/** 订单编号        **/
	this.tboiOrderNumber=function(tboiOrderNumber){if(this.proxy)return this.getProxy().tboiOrderNumber(tboiOrderNumber);  this.put("tboiOrderNumber", tboiOrderNumber);return this;};
	/** and tboi_order_number is null */
	this.tboiOrderNumberNull=function(){if(this.proxy)return this.getProxy().tboiOrderNumberNull();if(this.get("tboiOrderNumberNot")==null)this.put("tboiOrderNumberNot", "");this.put("tboiOrderNumber", null);return this;};
	/** not .... */
	this.tboiOrderNumberNot=function(){if(this.proxy)return this.getProxy().tboiOrderNumberNot();this.put("tboiOrderNumberNot", "not");return this;};
	this.tboiOrderNumberNotNull=function(){if(this.proxy)return this.getProxy().tboiOrderNumberNotNull();this.put("tboiOrderNumberNot", "not");this.put("tboiOrderNumber", null);return this;};
	this.tboiOrderNumberNot=function(tboiOrderNumber){if(this.proxy)return this.getProxy().tboiOrderNumberNot(tboiOrderNumber);this.put("tboiOrderNumberNot", "not");this.put("tboiOrderNumber", tboiOrderNumber);return this;};
	
	/** 来源    1:直接购买 2:余额充值 3:代理购买 4:合伙人购买     **/
	this.tboiSource=function(tboiSource){if(this.proxy)return this.getProxy().tboiSource(tboiSource);  this.put("tboiSource", tboiSource);return this;};
	/** and tboi_source is null */
	this.tboiSourceNull=function(){if(this.proxy)return this.getProxy().tboiSourceNull();if(this.get("tboiSourceNot")==null)this.put("tboiSourceNot", "");this.put("tboiSource", null);return this;};
	/** not .... */
	this.tboiSourceNot=function(){if(this.proxy)return this.getProxy().tboiSourceNot();this.put("tboiSourceNot", "not");return this;};
	this.tboiSourceNotNull=function(){if(this.proxy)return this.getProxy().tboiSourceNotNull();this.put("tboiSourceNot", "not");this.put("tboiSource", null);return this;};
	this.tboiSourceNot=function(tboiSource){if(this.proxy)return this.getProxy().tboiSourceNot(tboiSource);this.put("tboiSourceNot", "not");this.put("tboiSource", tboiSource);return this;};
	this.tboiSourceIn=function(ids){
		if(this.proxy)return this.getProxy().tboiSourceIn(ids);  this.put("tboiSourceIn", ids);return this;
	};	
	
	/** 所属品牌  [Merchant]      **/
	this.tboiBrand=function(tboiBrand){if(this.proxy)return this.getProxy().tboiBrand(tboiBrand);  this.put("tboiBrand", tboiBrand);return this;};
	/** and tboi_brand is null */
	this.tboiBrandNull=function(){if(this.proxy)return this.getProxy().tboiBrandNull();if(this.get("tboiBrandNot")==null)this.put("tboiBrandNot", "");this.put("tboiBrand", null);return this;};
	/** not .... */
	this.tboiBrandNot=function(){if(this.proxy)return this.getProxy().tboiBrandNot();this.put("tboiBrandNot", "not");return this;};
	this.tboiBrandNotNull=function(){if(this.proxy)return this.getProxy().tboiBrandNotNull();this.put("tboiBrandNot", "not");this.put("tboiBrand", null);return this;};
	this.tboiBrandNot=function(tboiBrand){if(this.proxy)return this.getProxy().tboiBrandNot(tboiBrand);this.put("tboiBrandNot", "not");this.put("tboiBrand", tboiBrand);return this;};
	/** and tboi_brand <= ? */
	this.tboiBrandMin=function(min){if(this.proxy)return this.getProxy().tboiBrandMin(min);this.put("tboiBrandMin", min);return this;};
	/** and tboi_brand >= ? */
	this.tboiBrandMax=function(max){if(this.proxy)return this.getProxy().tboiBrandMax(max);this.put("tboiBrandMax", max);return this;};
	this.tboiBrandIn=function(ids){
		if(this.proxy)return this.getProxy().tboiBrandIn(ids);  this.put("tboiBrandIn", ids);return this;
	};	
	
	/** 购买人  [Member]      **/
	this.tboiBuyer=function(tboiBuyer){if(this.proxy)return this.getProxy().tboiBuyer(tboiBuyer);  this.put("tboiBuyer", tboiBuyer);return this;};
	/** and tboi_buyer is null */
	this.tboiBuyerNull=function(){if(this.proxy)return this.getProxy().tboiBuyerNull();if(this.get("tboiBuyerNot")==null)this.put("tboiBuyerNot", "");this.put("tboiBuyer", null);return this;};
	/** not .... */
	this.tboiBuyerNot=function(){if(this.proxy)return this.getProxy().tboiBuyerNot();this.put("tboiBuyerNot", "not");return this;};
	this.tboiBuyerNotNull=function(){if(this.proxy)return this.getProxy().tboiBuyerNotNull();this.put("tboiBuyerNot", "not");this.put("tboiBuyer", null);return this;};
	this.tboiBuyerNot=function(tboiBuyer){if(this.proxy)return this.getProxy().tboiBuyerNot(tboiBuyer);this.put("tboiBuyerNot", "not");this.put("tboiBuyer", tboiBuyer);return this;};
	this.tboiBuyerIn=function(ids){
		if(this.proxy)return this.getProxy().tboiBuyerIn(ids);  this.put("tboiBuyerIn", ids);return this;
	};	
	
	/** 订单总金额        **/
	this.tboiTotal=function(tboiTotal){if(this.proxy)return this.getProxy().tboiTotal(tboiTotal);  this.put("tboiTotal", tboiTotal);return this;};
	/** and tboi_total is null */
	this.tboiTotalNull=function(){if(this.proxy)return this.getProxy().tboiTotalNull();if(this.get("tboiTotalNot")==null)this.put("tboiTotalNot", "");this.put("tboiTotal", null);return this;};
	/** not .... */
	this.tboiTotalNot=function(){if(this.proxy)return this.getProxy().tboiTotalNot();this.put("tboiTotalNot", "not");return this;};
	this.tboiTotalNotNull=function(){if(this.proxy)return this.getProxy().tboiTotalNotNull();this.put("tboiTotalNot", "not");this.put("tboiTotal", null);return this;};
	this.tboiTotalNot=function(tboiTotal){if(this.proxy)return this.getProxy().tboiTotalNot(tboiTotal);this.put("tboiTotalNot", "not");this.put("tboiTotal", tboiTotal);return this;};
	/** and tboi_total <= ? */
	this.tboiTotalMin=function(min){if(this.proxy)return this.getProxy().tboiTotalMin(min);this.put("tboiTotalMin", min);return this;};
	/** and tboi_total >= ? */
	this.tboiTotalMax=function(max){if(this.proxy)return this.getProxy().tboiTotalMax(max);this.put("tboiTotalMax", max);return this;};
	
	/** 实际支付金额        **/
	this.tboiMoney=function(tboiMoney){if(this.proxy)return this.getProxy().tboiMoney(tboiMoney);  this.put("tboiMoney", tboiMoney);return this;};
	/** and tboi_money is null */
	this.tboiMoneyNull=function(){if(this.proxy)return this.getProxy().tboiMoneyNull();if(this.get("tboiMoneyNot")==null)this.put("tboiMoneyNot", "");this.put("tboiMoney", null);return this;};
	/** not .... */
	this.tboiMoneyNot=function(){if(this.proxy)return this.getProxy().tboiMoneyNot();this.put("tboiMoneyNot", "not");return this;};
	this.tboiMoneyNotNull=function(){if(this.proxy)return this.getProxy().tboiMoneyNotNull();this.put("tboiMoneyNot", "not");this.put("tboiMoney", null);return this;};
	this.tboiMoneyNot=function(tboiMoney){if(this.proxy)return this.getProxy().tboiMoneyNot(tboiMoney);this.put("tboiMoneyNot", "not");this.put("tboiMoney", tboiMoney);return this;};
	/** and tboi_money <= ? */
	this.tboiMoneyMin=function(min){if(this.proxy)return this.getProxy().tboiMoneyMin(min);this.put("tboiMoneyMin", min);return this;};
	/** and tboi_money >= ? */
	this.tboiMoneyMax=function(max){if(this.proxy)return this.getProxy().tboiMoneyMax(max);this.put("tboiMoneyMax", max);return this;};
	
	/** 余额抵扣金额        **/
	this.tboiProduct=function(tboiProduct){if(this.proxy)return this.getProxy().tboiProduct(tboiProduct);  this.put("tboiProduct", tboiProduct);return this;};
	/** and tboi_product is null */
	this.tboiProductNull=function(){if(this.proxy)return this.getProxy().tboiProductNull();if(this.get("tboiProductNot")==null)this.put("tboiProductNot", "");this.put("tboiProduct", null);return this;};
	/** not .... */
	this.tboiProductNot=function(){if(this.proxy)return this.getProxy().tboiProductNot();this.put("tboiProductNot", "not");return this;};
	this.tboiProductNotNull=function(){if(this.proxy)return this.getProxy().tboiProductNotNull();this.put("tboiProductNot", "not");this.put("tboiProduct", null);return this;};
	this.tboiProductNot=function(tboiProduct){if(this.proxy)return this.getProxy().tboiProductNot(tboiProduct);this.put("tboiProductNot", "not");this.put("tboiProduct", tboiProduct);return this;};
	/** and tboi_product <= ? */
	this.tboiProductMin=function(min){if(this.proxy)return this.getProxy().tboiProductMin(min);this.put("tboiProductMin", min);return this;};
	/** and tboi_product >= ? */
	this.tboiProductMax=function(max){if(this.proxy)return this.getProxy().tboiProductMax(max);this.put("tboiProductMax", max);return this;};
	
	/** 优惠卷抵扣金额        **/
	this.tboiCoupon=function(tboiCoupon){if(this.proxy)return this.getProxy().tboiCoupon(tboiCoupon);  this.put("tboiCoupon", tboiCoupon);return this;};
	/** and tboi_coupon is null */
	this.tboiCouponNull=function(){if(this.proxy)return this.getProxy().tboiCouponNull();if(this.get("tboiCouponNot")==null)this.put("tboiCouponNot", "");this.put("tboiCoupon", null);return this;};
	/** not .... */
	this.tboiCouponNot=function(){if(this.proxy)return this.getProxy().tboiCouponNot();this.put("tboiCouponNot", "not");return this;};
	this.tboiCouponNotNull=function(){if(this.proxy)return this.getProxy().tboiCouponNotNull();this.put("tboiCouponNot", "not");this.put("tboiCoupon", null);return this;};
	this.tboiCouponNot=function(tboiCoupon){if(this.proxy)return this.getProxy().tboiCouponNot(tboiCoupon);this.put("tboiCouponNot", "not");this.put("tboiCoupon", tboiCoupon);return this;};
	/** and tboi_coupon <= ? */
	this.tboiCouponMin=function(min){if(this.proxy)return this.getProxy().tboiCouponMin(min);this.put("tboiCouponMin", min);return this;};
	/** and tboi_coupon >= ? */
	this.tboiCouponMax=function(max){if(this.proxy)return this.getProxy().tboiCouponMax(max);this.put("tboiCouponMax", max);return this;};
	
	/** 平台收益        **/
	this.tboiPtSy=function(tboiPtSy){if(this.proxy)return this.getProxy().tboiPtSy(tboiPtSy);  this.put("tboiPtSy", tboiPtSy);return this;};
	/** and tboi_pt_sy is null */
	this.tboiPtSyNull=function(){if(this.proxy)return this.getProxy().tboiPtSyNull();if(this.get("tboiPtSyNot")==null)this.put("tboiPtSyNot", "");this.put("tboiPtSy", null);return this;};
	/** not .... */
	this.tboiPtSyNot=function(){if(this.proxy)return this.getProxy().tboiPtSyNot();this.put("tboiPtSyNot", "not");return this;};
	this.tboiPtSyNotNull=function(){if(this.proxy)return this.getProxy().tboiPtSyNotNull();this.put("tboiPtSyNot", "not");this.put("tboiPtSy", null);return this;};
	this.tboiPtSyNot=function(tboiPtSy){if(this.proxy)return this.getProxy().tboiPtSyNot(tboiPtSy);this.put("tboiPtSyNot", "not");this.put("tboiPtSy", tboiPtSy);return this;};
	/** and tboi_pt_sy <= ? */
	this.tboiPtSyMin=function(min){if(this.proxy)return this.getProxy().tboiPtSyMin(min);this.put("tboiPtSyMin", min);return this;};
	/** and tboi_pt_sy >= ? */
	this.tboiPtSyMax=function(max){if(this.proxy)return this.getProxy().tboiPtSyMax(max);this.put("tboiPtSyMax", max);return this;};
	
	/** 普通间接收益        **/
	this.tboiPtJj=function(tboiPtJj){if(this.proxy)return this.getProxy().tboiPtJj(tboiPtJj);  this.put("tboiPtJj", tboiPtJj);return this;};
	/** and tboi_pt_jj is null */
	this.tboiPtJjNull=function(){if(this.proxy)return this.getProxy().tboiPtJjNull();if(this.get("tboiPtJjNot")==null)this.put("tboiPtJjNot", "");this.put("tboiPtJj", null);return this;};
	/** not .... */
	this.tboiPtJjNot=function(){if(this.proxy)return this.getProxy().tboiPtJjNot();this.put("tboiPtJjNot", "not");return this;};
	this.tboiPtJjNotNull=function(){if(this.proxy)return this.getProxy().tboiPtJjNotNull();this.put("tboiPtJjNot", "not");this.put("tboiPtJj", null);return this;};
	this.tboiPtJjNot=function(tboiPtJj){if(this.proxy)return this.getProxy().tboiPtJjNot(tboiPtJj);this.put("tboiPtJjNot", "not");this.put("tboiPtJj", tboiPtJj);return this;};
	/** and tboi_pt_jj <= ? */
	this.tboiPtJjMin=function(min){if(this.proxy)return this.getProxy().tboiPtJjMin(min);this.put("tboiPtJjMin", min);return this;};
	/** and tboi_pt_jj >= ? */
	this.tboiPtJjMax=function(max){if(this.proxy)return this.getProxy().tboiPtJjMax(max);this.put("tboiPtJjMax", max);return this;};
	
	/** 普通直接收益        **/
	this.tboiPtZj=function(tboiPtZj){if(this.proxy)return this.getProxy().tboiPtZj(tboiPtZj);  this.put("tboiPtZj", tboiPtZj);return this;};
	/** and tboi_pt_zj is null */
	this.tboiPtZjNull=function(){if(this.proxy)return this.getProxy().tboiPtZjNull();if(this.get("tboiPtZjNot")==null)this.put("tboiPtZjNot", "");this.put("tboiPtZj", null);return this;};
	/** not .... */
	this.tboiPtZjNot=function(){if(this.proxy)return this.getProxy().tboiPtZjNot();this.put("tboiPtZjNot", "not");return this;};
	this.tboiPtZjNotNull=function(){if(this.proxy)return this.getProxy().tboiPtZjNotNull();this.put("tboiPtZjNot", "not");this.put("tboiPtZj", null);return this;};
	this.tboiPtZjNot=function(tboiPtZj){if(this.proxy)return this.getProxy().tboiPtZjNot(tboiPtZj);this.put("tboiPtZjNot", "not");this.put("tboiPtZj", tboiPtZj);return this;};
	/** and tboi_pt_zj <= ? */
	this.tboiPtZjMin=function(min){if(this.proxy)return this.getProxy().tboiPtZjMin(min);this.put("tboiPtZjMin", min);return this;};
	/** and tboi_pt_zj >= ? */
	this.tboiPtZjMax=function(max){if(this.proxy)return this.getProxy().tboiPtZjMax(max);this.put("tboiPtZjMax", max);return this;};
	
	/** 代理间接收益        **/
	this.tboiDlJj=function(tboiDlJj){if(this.proxy)return this.getProxy().tboiDlJj(tboiDlJj);  this.put("tboiDlJj", tboiDlJj);return this;};
	/** and tboi_dl_jj is null */
	this.tboiDlJjNull=function(){if(this.proxy)return this.getProxy().tboiDlJjNull();if(this.get("tboiDlJjNot")==null)this.put("tboiDlJjNot", "");this.put("tboiDlJj", null);return this;};
	/** not .... */
	this.tboiDlJjNot=function(){if(this.proxy)return this.getProxy().tboiDlJjNot();this.put("tboiDlJjNot", "not");return this;};
	this.tboiDlJjNotNull=function(){if(this.proxy)return this.getProxy().tboiDlJjNotNull();this.put("tboiDlJjNot", "not");this.put("tboiDlJj", null);return this;};
	this.tboiDlJjNot=function(tboiDlJj){if(this.proxy)return this.getProxy().tboiDlJjNot(tboiDlJj);this.put("tboiDlJjNot", "not");this.put("tboiDlJj", tboiDlJj);return this;};
	/** and tboi_dl_jj <= ? */
	this.tboiDlJjMin=function(min){if(this.proxy)return this.getProxy().tboiDlJjMin(min);this.put("tboiDlJjMin", min);return this;};
	/** and tboi_dl_jj >= ? */
	this.tboiDlJjMax=function(max){if(this.proxy)return this.getProxy().tboiDlJjMax(max);this.put("tboiDlJjMax", max);return this;};
	
	/** 代理直接收益        **/
	this.tboiDlZj=function(tboiDlZj){if(this.proxy)return this.getProxy().tboiDlZj(tboiDlZj);  this.put("tboiDlZj", tboiDlZj);return this;};
	/** and tboi_dl_zj is null */
	this.tboiDlZjNull=function(){if(this.proxy)return this.getProxy().tboiDlZjNull();if(this.get("tboiDlZjNot")==null)this.put("tboiDlZjNot", "");this.put("tboiDlZj", null);return this;};
	/** not .... */
	this.tboiDlZjNot=function(){if(this.proxy)return this.getProxy().tboiDlZjNot();this.put("tboiDlZjNot", "not");return this;};
	this.tboiDlZjNotNull=function(){if(this.proxy)return this.getProxy().tboiDlZjNotNull();this.put("tboiDlZjNot", "not");this.put("tboiDlZj", null);return this;};
	this.tboiDlZjNot=function(tboiDlZj){if(this.proxy)return this.getProxy().tboiDlZjNot(tboiDlZj);this.put("tboiDlZjNot", "not");this.put("tboiDlZj", tboiDlZj);return this;};
	/** and tboi_dl_zj <= ? */
	this.tboiDlZjMin=function(min){if(this.proxy)return this.getProxy().tboiDlZjMin(min);this.put("tboiDlZjMin", min);return this;};
	/** and tboi_dl_zj >= ? */
	this.tboiDlZjMax=function(max){if(this.proxy)return this.getProxy().tboiDlZjMax(max);this.put("tboiDlZjMax", max);return this;};
	
	/** 合伙人收益        **/
	this.tboiHhrSy=function(tboiHhrSy){if(this.proxy)return this.getProxy().tboiHhrSy(tboiHhrSy);  this.put("tboiHhrSy", tboiHhrSy);return this;};
	/** and tboi_hhr_sy is null */
	this.tboiHhrSyNull=function(){if(this.proxy)return this.getProxy().tboiHhrSyNull();if(this.get("tboiHhrSyNot")==null)this.put("tboiHhrSyNot", "");this.put("tboiHhrSy", null);return this;};
	/** not .... */
	this.tboiHhrSyNot=function(){if(this.proxy)return this.getProxy().tboiHhrSyNot();this.put("tboiHhrSyNot", "not");return this;};
	this.tboiHhrSyNotNull=function(){if(this.proxy)return this.getProxy().tboiHhrSyNotNull();this.put("tboiHhrSyNot", "not");this.put("tboiHhrSy", null);return this;};
	this.tboiHhrSyNot=function(tboiHhrSy){if(this.proxy)return this.getProxy().tboiHhrSyNot(tboiHhrSy);this.put("tboiHhrSyNot", "not");this.put("tboiHhrSy", tboiHhrSy);return this;};
	/** and tboi_hhr_sy <= ? */
	this.tboiHhrSyMin=function(min){if(this.proxy)return this.getProxy().tboiHhrSyMin(min);this.put("tboiHhrSyMin", min);return this;};
	/** and tboi_hhr_sy >= ? */
	this.tboiHhrSyMax=function(max){if(this.proxy)return this.getProxy().tboiHhrSyMax(max);this.put("tboiHhrSyMax", max);return this;};
	
	/** 配送商收益        **/
	this.tboiPsSy=function(tboiPsSy){if(this.proxy)return this.getProxy().tboiPsSy(tboiPsSy);  this.put("tboiPsSy", tboiPsSy);return this;};
	/** and tboi_ps_sy is null */
	this.tboiPsSyNull=function(){if(this.proxy)return this.getProxy().tboiPsSyNull();if(this.get("tboiPsSyNot")==null)this.put("tboiPsSyNot", "");this.put("tboiPsSy", null);return this;};
	/** not .... */
	this.tboiPsSyNot=function(){if(this.proxy)return this.getProxy().tboiPsSyNot();this.put("tboiPsSyNot", "not");return this;};
	this.tboiPsSyNotNull=function(){if(this.proxy)return this.getProxy().tboiPsSyNotNull();this.put("tboiPsSyNot", "not");this.put("tboiPsSy", null);return this;};
	this.tboiPsSyNot=function(tboiPsSy){if(this.proxy)return this.getProxy().tboiPsSyNot(tboiPsSy);this.put("tboiPsSyNot", "not");this.put("tboiPsSy", tboiPsSy);return this;};
	/** and tboi_ps_sy <= ? */
	this.tboiPsSyMin=function(min){if(this.proxy)return this.getProxy().tboiPsSyMin(min);this.put("tboiPsSyMin", min);return this;};
	/** and tboi_ps_sy >= ? */
	this.tboiPsSyMax=function(max){if(this.proxy)return this.getProxy().tboiPsSyMax(max);this.put("tboiPsSyMax", max);return this;};
	
	/** 经销商收益        **/
	this.tboiJxsSy=function(tboiJxsSy){if(this.proxy)return this.getProxy().tboiJxsSy(tboiJxsSy);  this.put("tboiJxsSy", tboiJxsSy);return this;};
	/** and tboi_jxs_sy is null */
	this.tboiJxsSyNull=function(){if(this.proxy)return this.getProxy().tboiJxsSyNull();if(this.get("tboiJxsSyNot")==null)this.put("tboiJxsSyNot", "");this.put("tboiJxsSy", null);return this;};
	/** not .... */
	this.tboiJxsSyNot=function(){if(this.proxy)return this.getProxy().tboiJxsSyNot();this.put("tboiJxsSyNot", "not");return this;};
	this.tboiJxsSyNotNull=function(){if(this.proxy)return this.getProxy().tboiJxsSyNotNull();this.put("tboiJxsSyNot", "not");this.put("tboiJxsSy", null);return this;};
	this.tboiJxsSyNot=function(tboiJxsSy){if(this.proxy)return this.getProxy().tboiJxsSyNot(tboiJxsSy);this.put("tboiJxsSyNot", "not");this.put("tboiJxsSy", tboiJxsSy);return this;};
	/** and tboi_jxs_sy <= ? */
	this.tboiJxsSyMin=function(min){if(this.proxy)return this.getProxy().tboiJxsSyMin(min);this.put("tboiJxsSyMin", min);return this;};
	/** and tboi_jxs_sy >= ? */
	this.tboiJxsSyMax=function(max){if(this.proxy)return this.getProxy().tboiJxsSyMax(max);this.put("tboiJxsSyMax", max);return this;};
	
	/** 剩余收益        **/
	this.tboiSySy=function(tboiSySy){if(this.proxy)return this.getProxy().tboiSySy(tboiSySy);  this.put("tboiSySy", tboiSySy);return this;};
	/** and tboi_sy_sy is null */
	this.tboiSySyNull=function(){if(this.proxy)return this.getProxy().tboiSySyNull();if(this.get("tboiSySyNot")==null)this.put("tboiSySyNot", "");this.put("tboiSySy", null);return this;};
	/** not .... */
	this.tboiSySyNot=function(){if(this.proxy)return this.getProxy().tboiSySyNot();this.put("tboiSySyNot", "not");return this;};
	this.tboiSySyNotNull=function(){if(this.proxy)return this.getProxy().tboiSySyNotNull();this.put("tboiSySyNot", "not");this.put("tboiSySy", null);return this;};
	this.tboiSySyNot=function(tboiSySy){if(this.proxy)return this.getProxy().tboiSySyNot(tboiSySy);this.put("tboiSySyNot", "not");this.put("tboiSySy", tboiSySy);return this;};
	/** and tboi_sy_sy <= ? */
	this.tboiSySyMin=function(min){if(this.proxy)return this.getProxy().tboiSySyMin(min);this.put("tboiSySyMin", min);return this;};
	/** and tboi_sy_sy >= ? */
	this.tboiSySyMax=function(max){if(this.proxy)return this.getProxy().tboiSySyMax(max);this.put("tboiSySyMax", max);return this;};
	
	/** 添加时间        **/
	this.tboiAddTime=function(tboiAddTime){if(this.proxy)return this.getProxy().tboiAddTime(tboiAddTime);  this.put("tboiAddTime", tboiAddTime);return this;};
	/** and tboi_add_time is null */
	this.tboiAddTimeNull=function(){if(this.proxy)return this.getProxy().tboiAddTimeNull();if(this.get("tboiAddTimeNot")==null)this.put("tboiAddTimeNot", "");this.put("tboiAddTime", null);return this;};
	/** not .... */
	this.tboiAddTimeNot=function(){if(this.proxy)return this.getProxy().tboiAddTimeNot();this.put("tboiAddTimeNot", "not");return this;};
	this.tboiAddTimeNotNull=function(){if(this.proxy)return this.getProxy().tboiAddTimeNotNull();this.put("tboiAddTimeNot", "not");this.put("tboiAddTime", null);return this;};
	this.tboiAddTimeNot=function(tboiAddTime){if(this.proxy)return this.getProxy().tboiAddTimeNot(tboiAddTime);this.put("tboiAddTimeNot", "not");this.put("tboiAddTime", tboiAddTime);return this;};
	/** and tboi_add_time >= ? */
	this.tboiAddTimeStart=function(start){if(this.proxy)return this.getProxy().tboiAddTimeStart(start);this.put("tboiAddTimeStart", start);return this;};			
	/** and tboi_add_time <= ? */
	this.tboiAddTimeEnd=function(end){if(this.proxy)return this.getProxy().tboiAddTimeEnd(end);this.put("tboiAddTimeEnd", end);return this;};
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有订单收益 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/goods/tborderinvoies.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取订单收益分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/goods/tborderinvoies.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取订单收益 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/goods/tborderinvoies.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

TbOrderInvoies.get = function(id){
	var protocol = ux.ajax("/admin/goods/tborderinvoies.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.tbOrderInvoies;
	return null;
}

TbOrderInvoies.where = new TbOrderInvoies.Where(0,true);